console.log("注入登录脚本咯")


sendUserLoginMessage()
function sendUserLoginMessage() {
    let message = {
        action: 'userLogin',
        token: localStorage.getItem("token")
    }

    chrome.runtime.sendMessage(message, function (response) {
        console.log("Response from background script:", response);
    });
}

function sendUserLoginOutMessage() {
    let message = {
        action: 'userLogout',
    }

    chrome.runtime.sendMessage(message, function (response) {
        console.log("Response from background script:", response);
    });
}

